const path = require('path');
const os = require('os');

module.exports = {
  parallel: require('os').cpus().length > 1,
  productionSourceMap: false,
  devServer: {
    port: 8081,
  },
  css: {
    loaderOptions: {
      less: {
        // DO NOT REMOVE THIS LINE
        lessOptions: {
          javascriptEnabled: true
        }
      }
    }
  },
  configureWebpack: {
    externals: {
      'vue': 'Vue',
      'moment': 'moment',
      'ant-design-vue': 'antd',
    },
    resolve: {
      alias: {
        '@': path.join(__dirname, 'src')
      }
    }
  }
}
